.class public final Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;
.super Ljava/lang/Object;
.source "FeedBackDialogFragment.kt"

# interfaces
.implements Lcom/farmis/feedme/views/FeedbackView$FeedBackListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;


# direct methods
.method constructor <init>(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 37
    iput-object p1, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onDismiss()V
    .locals 6

    .line 39
    sget-object v0, Lcom/farmis/feedme/FeedMeMain;->S:Lcom/farmis/feedme/FeedMeMain$S;

    invoke-virtual {v0}, Lcom/farmis/feedme/FeedMeMain$S;->getParentInterface()Lcom/farmis/feedme/java_interfaces/OnReactionInterface;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    if-eqz v1, :cond_0

    const-string v2, "activity!!"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v2, Lcom/farmis/feedme/Conf;->Companion:Lcom/farmis/feedme/Conf$Companion;

    invoke-virtual {v2}, Lcom/farmis/feedme/Conf$Companion;->getIns()Lcom/farmis/feedme/Conf;

    move-result-object v2

    invoke-virtual {v2}, Lcom/farmis/feedme/Conf;->getOneSignalId()Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;->DISMISS:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;

    iget-object v4, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    const-string v5, ""

    invoke-static {v4, v5}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->access$getDataBundle(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v4

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/farmis/feedme/java_interfaces/OnReactionInterface;->onFeedBackReaction(Landroid/content/Context;Ljava/lang/String;Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;Landroid/os/Bundle;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    const/4 v0, 0x0

    throw v0

    .line 40
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    invoke-virtual {v0}, Landroidx/fragment/app/DialogFragment;->dismiss()V

    return-void
.end method

.method public onFeedbackSent(Ljava/lang/String;)V
    .locals 5

    const-string v0, "feedback"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 44
    sget-object v0, Lcom/farmis/feedme/FeedMeMain;->S:Lcom/farmis/feedme/FeedMeMain$S;

    invoke-virtual {v0}, Lcom/farmis/feedme/FeedMeMain$S;->getParentInterface()Lcom/farmis/feedme/java_interfaces/OnReactionInterface;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    invoke-virtual {v1}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    if-eqz v1, :cond_0

    const-string v2, "activity!!"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v2, Lcom/farmis/feedme/Conf;->Companion:Lcom/farmis/feedme/Conf$Companion;

    invoke-virtual {v2}, Lcom/farmis/feedme/Conf$Companion;->getIns()Lcom/farmis/feedme/Conf;

    move-result-object v2

    invoke-virtual {v2}, Lcom/farmis/feedme/Conf;->getOneSignalId()Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;->FEEDBACK_BUTTON:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;

    iget-object v4, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    invoke-static {v4, p1}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->access$getDataBundle(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object p1

    invoke-interface {v0, v1, v2, v3, p1}, Lcom/farmis/feedme/java_interfaces/OnReactionInterface;->onFeedBackReaction(Landroid/content/Context;Ljava/lang/String;Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;Landroid/os/Bundle;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    const/4 p1, 0x0

    throw p1

    .line 45
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;->this$0:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;

    invoke-virtual {p1}, Landroidx/fragment/app/DialogFragment;->dismiss()V

    return-void
.end method
